package com.bamboo.eduorder.feign.fallback;

import com.bamboo.eduorder.entity.dto.UcenterMember;
import com.bamboo.eduorder.feign.UcenterFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author jack.wu
 * @version 1.0
 * @date 2020-07-20
 */
@Slf4j
@Component
public class UcenterFeignClientFallback implements UcenterFeignClient {

    @Override
    public UcenterMember getMemberInfo(String id) {
        log.info("进入熔断方法{}", "UcenterFeignClientFallback");
        UcenterMember member = new UcenterMember();
        member.setNickname("默认用户");
        member.setSex(2);
        return member;
    }
}
